//
//  JGTNow.m
//  RunningMan
//
//  Created by JGT on 16/6/2.
//  Copyright © 2016年 WSJ. All rights reserved.
//

#import "JGTNow.h"

@implementation JGTNow
+ (JGTNow *)parseNowJsonData:(NSDictionary *)dic{
    return [[self alloc] parseNowJsonData:dic ];
    
}
- (JGTNow *)parseNowJsonData:(NSDictionary *)dic{
    self.tmp = dic[@"HeWeather data service 3.0"][0][@"now"][@"tmp"];
    self.qlty = dic[@"HeWeather data service 3.0"][0][@"aqi"][@"city"][@"qlty"];
    self.iconCodeUrl = [NSString stringWithFormat:@"http://files.heweather.com/cond_icon/%@.png",dic[@"HeWeather data service 3.0"][0][@"now"][@"cond"][@"code"]];
    return self;
    
    
}
@end
